#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class Tag: NotesNode
  {
  
	public Tag()
    {
      
	}

    

	[XmlAttribute]
    public override string ID
    {
      get
      {
        return "!!!No ID!!!";
      }
      set
      {
      }
    }

	
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  Tag item = (Tag)newContent;
      bool changed = false;

      
      if (completed != item.completed)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = completedField;
        propertyChange.NewValue = item.completedField;
        propertyChange.PropertyName = "completed";
        changes.Add(propertyChange);

		
        completedField = item.completedField;
      }

      if (completionDate != item.completionDate)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = completionDateField;
        propertyChange.NewValue = item.completionDateField;
        propertyChange.PropertyName = "completionDate";
        changes.Add(propertyChange);

		
        completionDateField = item.completionDateField;
      }

      if (creationDate != item.creationDate)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = creationDateField;
        propertyChange.NewValue = item.creationDateField;
        propertyChange.PropertyName = "creationDate";
        changes.Add(propertyChange);

		
        creationDateField = item.creationDateField;
      }

      if (disabled != item.disabled)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = disabledField;
        propertyChange.NewValue = item.disabledField;
        propertyChange.PropertyName = "disabled";
        changes.Add(propertyChange);

		
        disabledField = item.disabledField;
      }

      if (index != item.index)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = indexField;
        propertyChange.NewValue = item.indexField;
        propertyChange.PropertyName = "index";
        changes.Add(propertyChange);

		
        indexField = item.indexField;
      }


      return changed;
    }
  }
}

#endif